Termination w.r.t. Q of the following Term Rewriting System could be proven:
Q restricted rewrite system:
The TRS R consists of the following rules:
active(f(f(a))) → mark(f(g(f(a))))
active(g(X)) → g(active(X))
g(mark(X)) → mark(g(X))
proper(f(X)) → f(proper(X))
proper(a) → ok(a)
proper(g(X)) → g(proper(X))
f(ok(X)) → ok(f(X))
g(ok(X)) → ok(g(X))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
Q is empty.
↳ QTRS
↳ RFCMatchBoundsTRSProof
Q restricted rewrite system:
The TRS R consists of the following rules:
active(f(f(a))) → mark(f(g(f(a))))
active(g(X)) → g(active(X))
g(mark(X)) → mark(g(X))
proper(f(X)) → f(proper(X))
proper(a) → ok(a)
proper(g(X)) → g(proper(X))
f(ok(X)) → ok(f(X))
g(ok(X)) → ok(g(X))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
Q is empty.
Termination of the TRS R could be shown with a Match Bound [6,7] of 7. This implies Q-termination of R.
The following rules were used to construct the certificate:
active(f(f(a))) → mark(f(g(f(a))))
active(g(X)) → g(active(X))
g(mark(X)) → mark(g(X))
proper(f(X)) → f(proper(X))
proper(a) → ok(a)
proper(g(X)) → g(proper(X))
f(ok(X)) → ok(f(X))
g(ok(X)) → ok(g(X))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The certificate found is represented by the following graph.
The certificate consists of the following enumerated nodes:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 45, 48, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65
Node 1 is start node and node 2 is final node.
Those nodes are connect through the following edges:
- 1 to 3 labelled g_1(0), top_1(0)
- 1 to 4 labelled ok_1(0), mark_1(0)
- 1 to 5 labelled mark_1(0)
- 1 to 9 labelled top_1(0), g_1(0), f_1(0)
- 1 to 8 labelled ok_1(0)
- 1 to 18 labelled top_1(1)
- 1 to 19 labelled mark_1(1)
- 1 to 20 labelled ok_1(1)
- 1 to 32 labelled top_1(2)
- 1 to 59 labelled top_1(3)
- 2 to 2 labelled #_1(0)
- 3 to 2 labelled active_1(0)
- 3 to 13 labelled g_1(1)
- 3 to 14 labelled mark_1(1)
- 3 to 21 labelled mark_1(2)
- 4 to 2 labelled g_1(0), f_1(0)
- 4 to 12 labelled ok_1(1), mark_1(1)
- 5 to 6 labelled f_1(0)
- 6 to 7 labelled g_1(0)
- 7 to 8 labelled f_1(0)
- 8 to 2 labelled a(0)
- 9 to 2 labelled proper_1(0)
- 9 to 10 labelled g_1(1), f_1(1)
- 9 to 11 labelled ok_1(1)
- 9 to 22 labelled ok_1(2)
- 10 to 2 labelled proper_1(1)
- 10 to 10 labelled g_1(1), f_1(1)
- 10 to 11 labelled ok_1(1)
- 10 to 22 labelled ok_1(2)
- 11 to 2 labelled a(1)
- 12 to 2 labelled g_1(1), f_1(1)
- 12 to 12 labelled ok_1(1), mark_1(1)
- 13 to 2 labelled active_1(1)
- 13 to 13 labelled g_1(1)
- 13 to 14 labelled mark_1(1)
- 13 to 21 labelled mark_1(2)
- 14 to 15 labelled f_1(1)
- 15 to 16 labelled g_1(1)
- 16 to 17 labelled f_1(1)
- 17 to 2 labelled a(1)
- 18 to 14 labelled proper_1(1)
- 18 to 11 labelled active_1(1)
- 18 to 23 labelled f_1(2)
- 18 to 21 labelled proper_1(1)
- 18 to 22 labelled active_1(1)
- 18 to 26 labelled g_1(2)
- 18 to 27 labelled mark_1(2)
- 18 to 35 labelled mark_1(3)
- 18 to 38 labelled ok_1(3)
- 19 to 14 labelled g_1(1)
- 19 to 21 labelled g_1(1)
- 20 to 11 labelled f_1(1), g_1(1)
- 20 to 22 labelled f_1(1), g_1(1)
- 21 to 14 labelled g_1(2)
- 21 to 21 labelled g_1(2)
- 22 to 11 labelled f_1(2), g_1(2)
- 22 to 22 labelled f_1(2), g_1(2)
- 23 to 15 labelled proper_1(2)
- 23 to 24 labelled g_1(2)
- 23 to 36 labelled ok_1(3)
- 24 to 16 labelled proper_1(2)
- 24 to 25 labelled f_1(2)
- 24 to 34 labelled ok_1(3)
- 25 to 17 labelled proper_1(2)
- 25 to 30 labelled ok_1(2)
- 26 to 22 labelled active_1(2)
- 26 to 14 labelled proper_1(2)
- 26 to 21 labelled proper_1(2)
- 26 to 11 labelled active_1(2)
- 26 to 23 labelled f_1(2)
- 26 to 31 labelled g_1(3)
- 26 to 27 labelled mark_1(2)
- 26 to 35 labelled mark_1(3)
- 26 to 38 labelled ok_1(3)
- 26 to 39 labelled mark_1(4)
- 26 to 45 labelled ok_1(4)
- 28 to 29 labelled g_1(2)
- 29 to 30 labelled f_1(2)
- 27 to 28 labelled f_1(2)
- 30 to 2 labelled a(2)
- 31 to 22 labelled active_1(3)
- 31 to 11 labelled active_1(3)
- 31 to 14 labelled proper_1(3)
- 31 to 21 labelled proper_1(3)
- 31 to 23 labelled f_1(2)
- 31 to 31 labelled g_1(3)
- 31 to 27 labelled mark_1(2)
- 31 to 35 labelled mark_1(3)
- 31 to 38 labelled ok_1(3)
- 31 to 39 labelled mark_1(4)
- 31 to 45 labelled ok_1(4)
- 32 to 27 labelled proper_1(2)
- 32 to 33 labelled f_1(3)
- 32 to 35 labelled proper_1(2)
- 32 to 41 labelled g_1(3)
- 32 to 38 labelled active_1(2)
- 32 to 58 labelled ok_1(4)
- 33 to 28 labelled proper_1(3)
- 33 to 37 labelled g_1(3)
- 33 to 57 labelled ok_1(4)
- 34 to 30 labelled f_1(3)
- 35 to 27 labelled g_1(3)
- 35 to 35 labelled g_1(3)
- 35 to 39 labelled g_1(3)
- 36 to 34 labelled g_1(3)
- 37 to 29 labelled proper_1(3)
- 37 to 40 labelled f_1(3)
- 37 to 54 labelled ok_1(4)
- 38 to 36 labelled f_1(3)
- 38 to 38 labelled g_1(3)
- 38 to 45 labelled g_1(3)
- 39 to 35 labelled g_1(4)
- 39 to 39 labelled g_1(4)
- 40 to 30 labelled proper_1(3)
- 40 to 48 labelled ok_1(3)
- 41 to 27 labelled proper_1(3)
- 41 to 33 labelled f_1(3)
- 41 to 35 labelled proper_1(3)
- 41 to 38 labelled active_1(3)
- 41 to 39 labelled proper_1(3)
- 41 to 55 labelled g_1(4)
- 41 to 45 labelled active_1(3)
- 41 to 58 labelled ok_1(4)
- 41 to 60 labelled ok_1(5)
- 45 to 38 labelled g_1(4)
- 45 to 45 labelled g_1(4)
- 48 to 2 labelled a(3)
- 54 to 48 labelled f_1(4)
- 55 to 39 labelled proper_1(4)
- 55 to 35 labelled proper_1(4)
- 55 to 27 labelled proper_1(4)
- 55 to 55 labelled g_1(4)
- 55 to 38 labelled active_1(4)
- 55 to 45 labelled active_1(4)
- 55 to 56 labelled g_1(5)
- 55 to 33 labelled f_1(3)
- 55 to 58 labelled ok_1(4)
- 55 to 60 labelled ok_1(5)
- 55 to 62 labelled ok_1(6)
- 56 to 39 labelled proper_1(5)
- 56 to 35 labelled proper_1(5)
- 56 to 55 labelled g_1(4)
- 56 to 56 labelled g_1(5)
- 56 to 38 labelled active_1(5)
- 56 to 45 labelled active_1(5)
- 56 to 60 labelled ok_1(5)
- 56 to 62 labelled ok_1(6)
- 57 to 54 labelled g_1(4)
- 58 to 57 labelled f_1(4)
- 58 to 58 labelled g_1(4)
- 58 to 60 labelled g_1(4)
- 59 to 58 labelled active_1(3)
- 59 to 61 labelled g_1(4)
- 60 to 58 labelled g_1(5)
- 60 to 60 labelled g_1(5)
- 60 to 62 labelled g_1(5)
- 61 to 58 labelled active_1(4)
- 61 to 63 labelled g_1(5)
- 61 to 60 labelled active_1(4)
- 62 to 60 labelled g_1(6)
- 62 to 62 labelled g_1(6)
- 63 to 60 labelled active_1(5)
- 63 to 58 labelled active_1(5)
- 63 to 63 labelled g_1(5)
- 63 to 64 labelled g_1(6)
- 63 to 62 labelled active_1(5)
- 64 to 62 labelled active_1(6)
- 64 to 60 labelled active_1(6)
- 64 to 58 labelled active_1(6)
- 64 to 65 labelled g_1(7)
- 64 to 63 labelled g_1(5)
- 64 to 64 labelled g_1(6)
- 65 to 62 labelled active_1(7)
- 65 to 60 labelled active_1(7)
- 65 to 65 labelled g_1(7)
- 65 to 64 labelled g_1(6)